package com.sywb.chuangyebao.view.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.sywb.chuangyebao.R;
import com.sywb.chuangyebao.contract.FindProjectContract;
import org.bining.footstone.widget.PullToRefreshView;

import butterknife.BindInt;
import butterknife.BindView;

public class FindProjectFragment extends BaseRecyclerFragment<FindProjectContract.Presenter> implements FindProjectContract.FindProjectView{
    protected PullToRefreshView commonRefresh;
    /**
     * Fragment 实例
     */
    public static FindProjectFragment newInstance(Object... pramars) {
        FindProjectFragment fragment = new FindProjectFragment();
        fragment.setArguments(getBundle(pramars));
        return fragment;
    }

    @Override
    public int getLayoutId(Bundle bundle) {
        return R.layout.fragment_find_project;
    }

    @Override
    public void initPresenter() {
       mPresenter.initPresenter(this);
    }

    @Override
    public void initView(View view, Bundle bundle) {
        super.initView(view, bundle);
        commonRefresh = getView(R.id.common_refresh);
    }

    @Override
    public PullToRefreshView getPullToRefreshView() {
        return commonRefresh;
    }

}
